home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java Primer Plus
/
Java Primer Plus (Waite Group Proess)(1996).iso
/
chapter9
/
kids
/
son.java
< prev
Wrap
Text File
|
1995-12-31
|
444b
|
19 lines
package kids;
import brothers.Dad;
// --- The Son Class - Son is a subclass of Dad --- //
public class Son extends Dad {
public Son() {
// sportscar = true; // ERROR! Dad only!
// fishing_boat = true; // ERROR! Dad and UncleFrank only!
golf_clubs = true; // Ok, but be careful
familycar = true; // Son can borrow
lawnmower = true; // Yeah, sure anybody
pubprot=true;
}
}